﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Example14.aspx.cs" Inherits="Chapter12.Example14" %>

<!DOCTYPE html>

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>代码清单 12-14 用 fieldset 元素禁用 input 元素</title>
    <meta name="author" content="Adam Freeman" />
    <meta name="description" content="A simple example" />
    <link rel="shortcut icon" href="Example01.Favicon.ico" type="image/x-ico" />
</head>
<body>
    <form name="fruitvote" id="fruitvote" method="post">
        <div>
            <fieldset>
                <legend>Enter Your Details</legend>
                <p>
                    <label for="name">Name:</label>
                    <input name="name" id="name"/>
                </p>
                <p>
                    <label for="city">City:</label>
                    <input name="city" id="city"/>
                </p>
            </fieldset>
            <fieldset disabled="disabled">
                <legend>Vote For Your Three Favorite Fruits</legend>
                <p>
                    <label for="fave1">#1</label>
                    <input name="fave1" id="fave1" />
                </p>
                <p>
                    <label for="fave2">#2</label>
                    <input name="fave2" id="fave2" />
                </p>
                <p>
                    <label for="fave3">#3</label>
                    <input name="fave3" id="fave3" />
                </p>
            </fieldset>
            <p>
                <asp:Button ID="Submit" Text="Submit" OnClick="Submit_Click" />
                <asp:Button ID="ClearButton" Text="Clear" OnClick="ClearButton_Click" />
            </p>
            <p>
                <asp:TextBox ID="ViewTexBox" Wrap="true" Height="250" Width="700" TextMode="MultiLine" />
            </p>
        </div>
    </form>
</body>
</html>
